package com.woniu.mapper;

import com.woniu.entity.OrderItem;
import com.woniu.util.ResponseUtil;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author user
* @description 针对表【order_item(订单子表)】的数据库操作Mapper
* @createDate 2025-09-02 16:03:27
* @Entity com.woniu.entity.OrderItem
*/
public interface OrderItemMapper {

    // 批量插入订单项
    Integer batchInsertOrderItems(@Param("orderItems") List<OrderItem> orderItems);

    Integer delete(String orderId);

    Integer add(OrderItem record);

    OrderItem findById(Integer itemId);

    Integer update(OrderItem record);

    List<OrderItem> findOrderDetail(String orderId);
}